package com.managerConsummer.service;

import entity.Role;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * The interface Power service feign.
 *
 * @author tapoliuliyue
 * @date 2022 /04/23
 */
@FeignClient(name = "mp-p")
public interface PowerServiceFeign {
    /**
     * Select all power string.
     *
     * @return the string
     */
    @RequestMapping("/power/selectAllPower")
    @ResponseBody
    String selectAllPower();

    /**
     * Select by self string.
     *
     * @return the string
     */
    @RequestMapping("/power/selectBySelf")
    @ResponseBody
    String selectBySelf();


    /**
     * Update pr string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/power/updatePr")
    @ResponseBody
    String updatePr(@RequestBody Role role);


    /**
     * Query power list string.
     *
     * @return the string
     */
    @RequestMapping("/power/queryPowerList")
    @ResponseBody
    String queryPowerList();
}
